package itheima.d03;

import java.util.Arrays;

public class Test2 {
    public static void main(String[] args) {
        Student[] students = {
                new Student("小王", 18, 1.7),
                new Student("小张", 19, 1.8),
                new Student("小李", 17, 1.6),

        };
        Arrays.sort( students);

        for (int i = 0; i < students.length; i++) {
            System.out.println(students[i]);

        }

    }
}
